package com.example.mybatis.demo1.Mapper;

import com.example.mybatis.demo1.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {


    List<User> getAll();

    //返回受影响的行数！
    int addUser(User user);

    //返回自增后的id
    int addUser2(User user);





}
